namespace Users {
    	using System;
    	
    	
    	/// <summary>
    	/// 表名：uc_EmailVerification 主键列：Id
    	/// </summary>
    	[SerializableAttribute()]
    	public partial class _EmailVerification : MySoft.Data.Entity {
    		
    		protected Int32 _Id;
    		
    		protected String _Email;
    		
    		protected String _ActiveCode;
    		
    		protected DateTime _Expired;
    		
    		protected String _ActiveType;
    		
    		protected DateTime? _UseTime;
    		
    		protected Boolean _IsUsed;
    		
    		public Int32 Id {
    			get {
    				return this._Id;
    			}
    			set {
    				this.OnPropertyValueChange(_.Id, _Id, value);
    				this._Id = value;
    			}
    		}
    		
    		/// <summary>
    		/// 电子邮箱
    		/// </summary>
    		public String Email {
    			get {
    				return this._Email;
    			}
    			set {
    				this.OnPropertyValueChange(_.Email, _Email, value);
    				this._Email = value;
    			}
    		}
    		
    		/// <summary>
    		/// 激活代码
    		/// </summary>
    		public String ActiveCode {
    			get {
    				return this._ActiveCode;
    			}
    			set {
    				this.OnPropertyValueChange(_.ActiveCode, _ActiveCode, value);
    				this._ActiveCode = value;
    			}
    		}
    		
    		/// <summary>
    		/// 过期时间
    		/// </summary>
    		public DateTime Expired {
    			get {
    				return this._Expired;
    			}
    			set {
    				this.OnPropertyValueChange(_.Expired, _Expired, value);
    				this._Expired = value;
    			}
    		}
    		
    		/// <summary>
    		/// 激活类型
    		/// </summary>
    		public String ActiveType {
    			get {
    				return this._ActiveType;
    			}
    			set {
    				this.OnPropertyValueChange(_.ActiveType, _ActiveType, value);
    				this._ActiveType = value;
    			}
    		}
    		
    		/// <summary>
    		/// 使用时间
    		/// </summary>
    		public DateTime? UseTime {
    			get {
    				return this._UseTime;
    			}
    			set {
    				this.OnPropertyValueChange(_.UseTime, _UseTime, value);
    				this._UseTime = value;
    			}
    		}
    		
    		/// <summary>
    		/// 是否使用
    		/// </summary>
    		public Boolean IsUsed {
    			get {
    				return this._IsUsed;
    			}
    			set {
    				this.OnPropertyValueChange(_.IsUsed, _IsUsed, value);
    				this._IsUsed = value;
    			}
    		}
    		
    		/// <summary>
    		/// 获取实体对应的表名
    		/// </summary>
    		protected override MySoft.Data.Table GetTable() {
    			return new MySoft.Data.Table<_EmailVerification>("uc_EmailVerification");
    		}
    		
    		/// <summary>
    		/// 获取实体中的标识列
    		/// </summary>
    		protected override MySoft.Data.Field GetIdentityField() {
    			return _.Id;
    		}
    		
    		/// <summary>
    		/// 获取实体中的主键列
    		/// </summary>
    		protected override MySoft.Data.Field[] GetPrimaryKeyFields() {
    			return new MySoft.Data.Field[] {
    					_.Id};
    		}
    		
    		/// <summary>
    		/// 获取列信息
    		/// </summary>
    		protected override MySoft.Data.Field[] GetFields() {
    			return new MySoft.Data.Field[] {
    					_.Id,
    					_.Email,
    					_.ActiveCode,
    					_.Expired,
    					_.ActiveType,
    					_.UseTime,
    					_.IsUsed};
    		}
    		
    		/// <summary>
    		/// 获取列数据
    		/// </summary>
    		protected override object[] GetValues() {
    			return new object[] {
    					this._Id,
    					this._Email,
    					this._ActiveCode,
    					this._Expired,
    					this._ActiveType,
    					this._UseTime,
    					this._IsUsed};
    		}
    		
    		/// <summary>
    		/// 给当前实体赋值
    		/// </summary>
    		protected override void SetValues(MySoft.Data.IRowReader reader) {
    			if ((false == reader.IsDBNull(_.Id))) {
    				this._Id = reader.GetInt32(_.Id);
    			}
    			if ((false == reader.IsDBNull(_.Email))) {
    				this._Email = reader.GetString(_.Email);
    			}
    			if ((false == reader.IsDBNull(_.ActiveCode))) {
    				this._ActiveCode = reader.GetString(_.ActiveCode);
    			}
    			if ((false == reader.IsDBNull(_.Expired))) {
    				this._Expired = reader.GetDateTime(_.Expired);
    			}
    			if ((false == reader.IsDBNull(_.ActiveType))) {
    				this._ActiveType = reader.GetString(_.ActiveType);
    			}
    			if ((false == reader.IsDBNull(_.UseTime))) {
    				this._UseTime = reader.GetDateTime(_.UseTime);
    			}
    			if ((false == reader.IsDBNull(_.IsUsed))) {
    				this._IsUsed = reader.GetBoolean(_.IsUsed);
    			}
    		}
    		
    		public override int GetHashCode() {
    			return base.GetHashCode();
    		}
    		
    		public override bool Equals(object obj) {
    			if ((obj == null)) {
    				return false;
    			}
    			if ((false == typeof(_EmailVerification).IsAssignableFrom(obj.GetType()))) {
    				return false;
    			}
    			if ((((object)(this)) == ((object)(obj)))) {
    				return true;
    			}
    			return false;
    		}
    		
    		public class _ {
    			
    			/// <summary>
    			/// 表示选择所有列，与*等同
    			/// </summary>
    			public static MySoft.Data.AllField All = new MySoft.Data.AllField<_EmailVerification>();
    			
    			/// <summary>
    			/// 字段名：Id - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field Id = new MySoft.Data.Field<_EmailVerification>("Id");
    			
    			/// <summary>
    			/// 电子邮箱 - 字段名：Email - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field Email = new MySoft.Data.Field<_EmailVerification>("Email");
    			
    			/// <summary>
    			/// 激活代码 - 字段名：ActiveCode - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field ActiveCode = new MySoft.Data.Field<_EmailVerification>("ActiveCode");
    			
    			/// <summary>
    			/// 过期时间 - 字段名：Expired - 数据类型：DateTime
    			/// </summary>
    			public static MySoft.Data.Field Expired = new MySoft.Data.Field<_EmailVerification>("Expired");
    			
    			/// <summary>
    			/// 激活类型 - 字段名：ActiveType - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field ActiveType = new MySoft.Data.Field<_EmailVerification>("ActiveType");
    			
    			/// <summary>
    			/// 使用时间 - 字段名：UseTime - 数据类型：DateTime(可空)
    			/// </summary>
    			public static MySoft.Data.Field UseTime = new MySoft.Data.Field<_EmailVerification>("UseTime");
    			
    			/// <summary>
    			/// 是否使用 - 字段名：IsUsed - 数据类型：Boolean
    			/// </summary>
    			public static MySoft.Data.Field IsUsed = new MySoft.Data.Field<_EmailVerification>("IsUsed");
    		}
    	}
    }
    